package com.alan.search.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author shiml
 * @date 2021/12/3 11:56 上午
 */
@ApiModel("订单信息")
@Data
public class OrderBO {

    @ApiModelProperty(value = "订单ID", example = "1466661669425905665")
    private Long orderId;

    @ApiModelProperty(value = "订单编号", example = "233778250794")
    private String orderNo;

    @ApiModelProperty(value = "下单用户ID", example = "23431")
    private Long userId;

    @ApiModelProperty(value = "下单用户昵称", example = "张三")
    private String userName;

    @ApiModelProperty(value = "收货地址", example = "深圳市宝安区海城路麻布新村1巷11号203")
    private String recvAddress;

    @ApiModelProperty(value = "商品数量", example = "2")
    private Integer goodsCount;

    @ApiModelProperty(value = "购买商品总金额", example = "148.20")
    private BigDecimal priceAmount;

    @ApiModelProperty(value = "运费金额", example = "8")
    private BigDecimal freightAmount;

    @ApiModelProperty(value = "平台补贴总金额", example = "156.20")
    private BigDecimal totalPreferentialAmount;

    @ApiModelProperty(value = "是否货到付款（0:在线付款，1:货到付款）", example = "0")
    private Integer payOnDelivery;

    @ApiModelProperty(value = "订单状态（0:待支付；1:已支付，2:配送中，3:已完成，4:已取消）", example = "2")
    private Integer status;

    @ApiModelProperty(value = "支付时间", example = "1640894716000")
    private Long payTime;

    @ApiModelProperty(value = "创建人", example = "zhangsan")
    private String createUser;

    @ApiModelProperty(value = "创建时间", example = "1638503296468")
    private Long createTime;

    @ApiModelProperty(value = "更新人", example = "zhangsan")
    private String updateUser;

    @ApiModelProperty(value = "更新时间", example = "1638503296468")
    private Long updateTime;

}
